]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Sync with release tarball contents
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 19 Mar 2026 06:58:46 +0000 (14:58 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 19 Mar 2026 06:58:46 +0000 (14:58 +0800)
subprojects/gvc/gvc-mixer-control.c

index 45764849bb2e0c2ffbc6ecbc10b587bd84d72516..57dc2d4f2ccde177fc7e935f19c10029e2db7a18 100644 (file)
@@ -1218,7 +1218,8 @@ add_stream (GvcMixerControl *control,
 static gboolean
 match_stream_with_devices (GvcMixerControl    *control,
                            GvcMixerStreamPort *stream_port,
-                           GvcMixerStream     *stream)
+                           GvcMixerStream     *stream,
+                           gboolean            is_bluetooth)
 {
         g_autoptr (GList)        devices = NULL;
         guint                    stream_card_id;
@@ -1279,7 +1280,7 @@ match_stream_with_devices (GvcMixerControl    *control,
                                         in_possession = TRUE;
                                 } else {
                                         /* Other UI devices on that card that match the stream can't be valid */
-                                        if (device_stream_id == stream_id) {
+                                        if (device_stream_id == stream_id && is_bluetooth) {
                                                 g_object_set (G_OBJECT (device),
                                                               "stream-id", GVC_MIXER_UI_DEVICE_INVALID,
                                                               NULL);
@@ -1390,7 +1391,7 @@ sync_devices (GvcMixerControl *control,
                 GvcMixerStreamPort *stream_port;
                 stream_port = n->data;
 
-                if (match_stream_with_devices (control, stream_port, stream))
+                if (match_stream_with_devices (control, stream_port, stream, is_bluetooth))
                         continue;
 
                 g_warning ("Sync_devices: Failed to match stream id: %u, description: '%s', origin: '%s'",